import 'package:flutter/material.dart';

class MyImage {
  static Widget networkImageByNone(){
    return Container(
      width: 300,
      height: 400,
      color: Colors.yellow,
      child: Image.network(
        "https://scpic.chinaz.net/files/pic/pic9/202012/apic29620.jpg",
      ),
    );
  }

  static Widget networkImageByAlignment(){
    return Container(
      width: 300,
      height: 400,
      color: Colors.yellow,
      child: Image.network(
        "https://scpic.chinaz.net/files/pic/pic9/202012/apic29620.jpg",
        alignment: Alignment.bottomRight,
      ),
    );
  }

  static Widget networkImageByColor(){
    return Container(
      width: 300,
      height: 400,
      color: Colors.yellow,
      child: Image.network(
        "https://scpic.chinaz.net/files/pic/pic9/202012/apic29620.jpg",
        color: Colors.blue,
        colorBlendMode: BlendMode.screen,
      ),
    );
  }

  static Widget networkImageByFit(){
    return Container(
      width: 300,
      height: 400,
      color: Colors.yellow,
      child: Image.network(
        "https://scpic.chinaz.net/files/pic/pic9/202012/apic29620.jpg",
        fit: BoxFit.fill,
      ),
    );
  }

  static Widget networkImageByRepeat(){
    return Container(
      width: 400,
      height: 400,
      color: Colors.yellow,
      child: Image.network(
        "https://scpic.chinaz.net/files/pic/pic9/202012/apic29620.jpg",
        repeat: ImageRepeat.repeat,
        alignment: Alignment.topLeft,
      ),
    );
  }

  static Widget networkImageByWH(){
    return Container(
      child: ClipOval(
        child: Image.network(
          "https://scpic.chinaz.net/files/pic/pic9/202012/apic29620.jpg",
          width: 300,
          height: 300,
        ),
      ),
    );
  }
}
